<?php 

	 //$this->chromephp->log('school', $school);

?>

	<!--
	<div class="grid_7">
		<div class="module">
			<h2><span></span></h2>
			<div class="module-body">
					<form class="form-horizontal">
						<div id="schoolName" class="control-group">
							<label class="control-label">Nome: </label>
							<div class="controls">
								<input type="text" class="span2" name="name" placeholder="">
								<span class="help-inline"></span>
							</div>
						</div>
						<div id="schoolAddress" class="control-group">
							<label class="control-label">Morada</label>
							<div class="controls">
								<input type="text" class="span2" name="name" placeholder="">
								<span class="help-inline"></span>
							</div>
						</div>
						<div id="schoolPhone" class="control-group">
							<label class="control-label">Telefone</label>
							<div class="controls">
								<input type="text" class="span2" name="name" placeholder="">
								<span class="help-inline"></span>
							</div>
						</div>
					</form>
				<button id="createButton" class="btn">guardar</button>
			</div>
		</div>
	</div>
	-->
	
	
	<div class="container">
		<!--  <div class="row"><p>...</p></div> -->
		<hr>
		<div class="row">
			<div class="span6">
				<form id="schoolProfile" class="form-horizontal" method="post" action="<?php echo base_url('pt/school/setSchoolData');?>">
					<div id="schoolName" class="control-group">
						<label class="control-label">Nome da escola: </label>
						<div class="controls">
							<input type="text" class="span4" name="schoolCompany" value="<?php echo $school->company; ?>" placeholder="">
							<span class="help-inline"></span>
						</div>
					</div>
					<div id="schoolPhone" class="control-group">
						<label class="control-label">Telefone: </label>
						<div class="controls">
							<input type="text" class="span2" name="schoolPhone" value="<?php echo $school->phone; ?>" placeholder=""> 
							<span class="help-inline"></span>
						</div>
					</div>
					<div id="schoolAddress" class="control-group">
						<label class="control-label">Morada:</label>
						<div class="controls">
							<input type="text" class="span4" name="schoolAddress" value="<?php echo $school->address; ?>" placeholder="">
							<span class="help-inline"></span>
						</div>
					</div>
					<button id="sendButton" class="btn" type="submit">Guardar</button>
				</form>
				<p></p>
				<div id="msgLabel" class=""></div>
			</div>
			
			<!--
			<div class="span4">
				<div class="tabbable">
					<ul class="nav nav-tabs">
						<li class="active"><a href="#tab1" data-toggle="tab">Section 1</a></li>
						<li><a href="#tab2" data-toggle="tab">Section 2</a></li>
    				</ul>
    				<div class="tab-content">
    					<div class="tab-pane active" id="tab1">
    						<p>section 1</p>
    					</div>
    					<div class="tab-pane" id="tab2">
    						<p>section 2</p>
    					</div>
    				</div>
    			</div>
			</div>
			-->
			
		</div> <!-- #row -->
		
	</div> <!-- #container -->
	
	
	<!--
	<div class="grid_5">
		<div class="module">
			<h2><span></span></h2>
			<div class="module-body">
				<button class="btn" id="tmpButton" type="submit">tmp button</button>
			</div>
		</div>
	</div>
	-->
	

<div style="clear:both;"></div>






<form class="hidden" action="<?php echo base_url('School/tmp');?>" method="post" id="hiddenForm">
	<input type="hidden" id="tmpFormVar1" name="var1" value="var value 1"/>
	<input type="hidden" id="tmpFormVar2" name="var2" value="var value 2"/>
</form>






<script>

$(document).ready(function() {
	
	$('#tmpAnchor').on('click',function() {
		//alert('click');	
		//$('#hiddenForm').submit();
	});

	$('#tmpButton').on('click',function() {
		alert('tmpbutton');
	});
});

</script>